﻿using Freshbooks.XmlSerializers;

namespace Freshbooks.Model
{
    [FreshbooksSerialization(Name = "line")]
    public class Line
    {
        [FreshbooksSerialization(Name = "line_id")]
        public int LineId { get; set; }

        [FreshbooksSerialization(Name = "amount")]
        public float Amount { get; set; }

        [FreshbooksSerialization(Name = "name")]
        public string Name { get; set; }

        [FreshbooksSerialization(Name = "description")]
        public string Description { get; set; }

        [FreshbooksSerialization(Name = "unit_cost")]
        public float UnitCost { get; set; }

        [FreshbooksSerialization(Name = "quantity")]
        public float Quantity { get; set; }

        [FreshbooksSerialization(Name = "tax1_name")]
        public string Tax1Name { get; set; }

        [FreshbooksSerialization(Name = "tax2_name")]
        public string Tax2Name { get; set; }

        [FreshbooksSerialization(Name = "tax1_percent")]
        public float Tax1Percent { get; set; }

        [FreshbooksSerialization(Name = "tax2_percent")]
        public float Tax2Percent { get; set; }

        [FreshbooksSerialization(Name = "type")]
        public string Type { get; set; }
    }
}
